package com.rd.student.jiaji.class3.sunguowei.day0802;

public class Practice {
    public static void main(String[] args) {
        int num=0;
        int count=0;
        for (int i = 0; i < 100; i++) {
           if(i%7==0){
               num+=i;
               count++;
           }

        }
        System.out.println("7倍数相加的和："+num);
        System.out.println("7倍数的个数："+count);
        MaxValue();
    }

    public static void MaxValue(){
        int[] arr={66,88,9,4,7,21,22};
        int max=arr[0];
        for (int i = 0; i < arr.length; i++) {
            if(max<arr[i]){
                max=arr[i];
            }

        }
        System.out.println(max);
    }
}


